import 'dayjs/locale/zh-cn'
import Vue from 'vue'
import relativeTime from 'dayjs/plugin/relativeTime'
import dayjs from 'dayjs'
import * as filters from '@/filters/filters'

dayjs.extend(relativeTime)
dayjs.locale('zh-cn')
Object.keys(filters).forEach(item => {
  Vue.filter(item, filters[item])
})
